﻿using SmartSpace.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartSpace.OA
{
    [Table("oa_asset")]
    public class Asset : ICodeEntity
    {
        [Key]
        public Guid Id { get; set; }
        public string Code { get; set; }
        public string Caption { get; set; }

        public string TypeCode { get; set; }
        public string TypeCaption { get; set; }

        /// <summary>
        /// 所属的机构
        /// </summary>
        public Guid OrgId { get; set; }

        public string Creator { get; set; }
        public DateTime CreatedDate { get; set; }


        public void Validation()
        {
            throw new NotImplementedException();
        }
    }
}
